package com.grapecc.myrule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 卖糖的兜兜
 * @version 1.0.0
 * @ClassName MySelfRule.java
 * @Description TODO
 * @createTime 2022年02月10日 14:17:00
 */
@Configuration
public class MySelfRule {

    @Bean
    public IRule getMyRule(){
        return new RandomRule();  //随机
    }
}
